{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>微信配置</strong></li>
	</ol>
</div>
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			{include file="system/top"}
			<div class="ibox-content">
				<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('wechat')}">
					<div class="form-group">
						<label class="col-sm-3 control-label">公众号名称：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="wechat_config[we_name]" name="wechat_config[we_name]" value="{$wechat_config.we_name}" placeholder="公众号名称" class="form-control" required>
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">公众号原始ID：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="wechat_config[we_id]" name="wechat_config[we_id]" value="{$wechat_config.we_id}" placeholder="公众号原始ID" class="form-control" />
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">微信号：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="wechat_config[we_no]" name="wechat_config[we_no]" value="{$wechat_config.we_no}" placeholder="微信号" class="form-control" />
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">AppID：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="wechat_config[appid]" name="wechat_config[appid]" value="{$wechat_config.appid}" placeholder="AppID" class="form-control" />
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">AppSecret：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="wechat_config[appsecret]" name="wechat_config[appsecret]" value="{$wechat_config.appsecret}" placeholder="AppSecret" class="form-control" />
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">Token：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="wechat_config[token]" name="wechat_config[token]" value="{$wechat_config.token}" placeholder="Token" class="form-control" />
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">EncodingAESKey：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="wechat_config[encodingaeskey]" name="wechat_config[encodingaeskey]" value="{$wechat_config.encodingaeskey}" placeholder="EncodingAESKey" class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">URL服务器地址：</label>
						<div class="input-group col-sm-4">
							http://test.ilong3.cn/wechat
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">网页授权回调域名：</label>
						<div class="input-group col-sm-4">
							http://a2.ilong3.cn
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3">
							<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script>
	//顶部导航
	$("#li-bar-wechat").addClass("active");
	//ajax表单提交
	$("#myForm").submit(function() {
		ajaxForm();
		return false;
	});
</script>
{/block}